package com.iraeta.entity.main.type;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class PlanYwlx {
    public static final int undefined = 0;
    public static final int self = 1;
    public static final int gongsi = 2;

    public static String getPlanYwlxName(int typeId){
        String res = "未知";
        switch (typeId){
            case undefined:
                res="未知";
                break;
            case self:
                res="自盘";
                break;
            case gongsi:
                res="公司盘点";
                break;
        }
        return res;
    }

    public static List<HashMap<String,Object>> getList(){
        List<HashMap<String,Object>> res = new ArrayList<>();
        HashMap<String,Object> map1 = new HashMap<>();
        map1.put("id", PlanYwlx.self);
        map1.put("name", "自盘");
        HashMap<String,Object> map2 = new HashMap<>();
        map2.put("id", PlanYwlx.gongsi);
        map2.put("name", "公司盘点");
        res.add(map1);
        res.add(map2);
        return res;
    }
}
